﻿using System;
using System.Collections.Generic;
using System.Text;
using ProjScan.Tools;
using UnityEngine;

namespace ProjScan.RecordManager.AssetData
{
	// Token: 0x020002A5 RID: 677
	internal class SceneObjAssetData : AssetDataBase
	{
		// Token: 0x060011AB RID: 4523 RVA: 0x00053104 File Offset: 0x00051304
		public override string GetCSVHeader()
		{
			return "Name,Hierarch,ChildUIElementsCount";
		}

		// Token: 0x060011AC RID: 4524 RVA: 0x0005311C File Offset: 0x0005131C
		public override string GetInfo()
		{
			string str = ToolsHelper.QuoteString(this.gameObj.name) + ",";
			string text = "";
			for (int i = this.hierarchyList.Count - 1; i >= 0; i--)
			{
				text = text + this.hierarchyList[i] + "/";
			}
			RectTransform[] componentsInChildren = this.gameObj.GetComponentsInChildren<RectTransform>();
			int num = (componentsInChildren == null) ? 0 : (componentsInChildren.Length - 1);
			return str + ToolsHelper.QuoteString(text) + "," + ToolsHelper.QuoteString(num.ToString());
		}

		// Token: 0x060011AD RID: 4525 RVA: 0x00002A20 File Offset: 0x00000C20
		public override void Reset()
		{
		}

		// Token: 0x060011AE RID: 4526 RVA: 0x000531C8 File Offset: 0x000513C8
		public override string GetAssetPath()
		{
			StringBuilder stringBuilder = new StringBuilder(this.gameObj.scene.path + "$/");
			for (int i = this.hierarchyList.Count - 1; i >= 0; i--)
			{
				stringBuilder.Append(this.hierarchyList[i]).Append("/");
			}
			stringBuilder.Append(this.gameObj.name);
			return stringBuilder.ToString();
		}

		// Token: 0x060011AF RID: 4527 RVA: 0x00053258 File Offset: 0x00051458
		public override string GetFileAssetPath()
		{
			return this.GetAssetPath();
		}

		// Token: 0x04000A66 RID: 2662
		public GameObject gameObj;

		// Token: 0x04000A67 RID: 2663
		public List<string> hierarchyList;
	}
}
